﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeafCore.Components.Freesql
{
    /// <summary>
    /// freesql设置
    /// </summary>
    public class FreeSqlOptions
    {
        /// <summary>
        /// 数据库链接字符串
        /// </summary>
        public string ConnectionString { get; set; }

        /// <summary>
        /// 是否显示慢查询(默认关闭)
        /// </summary>
        public bool IsShowSlowSql { get; set; } = false;

        /// <summary>
        /// 慢语句最小时间(默认3000毫秒)
        /// </summary>
        public int MinElapsedMilliseconds { get; set; } = 3000;

        /// <summary>
        /// 是否开启事务
        /// </summary>
        public bool IsOpenTransaction { get; set; } = false;

        /// <summary>
        /// 是否开启软删除过滤
        /// </summary>
        public bool IsOpenSoftDeletedFilter { get; set; } = false;
    }
}
